from multiprocessing.pool import ThreadPool
pool_size = 10
def threadpool(my_print,items):
    pool = ThreadPool(pool_size)  # 创建一个线程池
    pool.map(my_print, items)  # 往线程池中填线程
    pool.close()  # 关闭线程池，不再接受线程
    pool.join()  # 等待线程池中线程全部执行完